const state={
	userinfo:"",
	gpid:"",
	gpname:""
}
const mutations={
	/**
	 * 改变username的值
	 */
//	ch(state,uname){
//		state.username='鞍钢'+uname;
//	},
//	chage(state,newage){
//		state.age=newage-1;
//	}
user(state,con){
	state.userinfo=con;
},
gp(state,con){
	state.gpid=con;
},
gpname(state,con){
	state.gpname=con;
}
}
const actions={
	chageasync(context,uname){
		context.commit('ch',uname);
	}
}
export default{
	// 通过命名空间使用，通过文件名
	 namespaced: true,
	 state,
	 mutations,
	 actions
}